Skip to content

Conversation

@jweber
Copy link
Contributor

@jweber jweber commented Dec 29, 2015

This is a re-submit of PR #1651 against the master branch. I've also submitted this change as another pull request to the PUrify-net repository.


It looks like commit 5b0bd6c refactored this class and lost pieces of the code that respect port numbers as well as the absence of query strings in the given URI.

This was causing System.ArgumentOutOfRangeException : StartIndex cannot be less than zero. exceptions to be thrown from my project which is targeting .NET 4.6.

I just took the same code in the UriInfo class prior to commit 5b0bd6c and re-added it to the refactored class.

UriInfo class was not respecting the URI port and would throw an ArgumentOutOfRangeException if no querystring was defined.
@Mpdreamz
Copy link
Member

LGTM 👍 thanks for retargeting!

Mpdreamz added a commit that referenced this pull request Dec 30, 2015
UriInfo class is improperly parsing URIs
@Mpdreamz Mpdreamz merged commit c919822 into elastic:master Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants